package com.iasku.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class UserErrorBook implements Parcelable{
    private String examid;
    private String examname;
    private String questionno;
    private String subjectname;
    private String questionType;
    private String submitTime;
    private String maxScore;
    private String getScore;
    private String isCorrectedStr;
    
    public static final Parcelable.Creator<UserErrorBook> CREATOR = new Parcelable.Creator<UserErrorBook>() {
        // 重写Creator
        @Override
        public UserErrorBook createFromParcel(Parcel source) {
            UserErrorBook eBook = new UserErrorBook();
            eBook.examid = source.readString();
            eBook.examname = source.readString();
            eBook.questionno = source.readString();
            eBook.subjectname = source.readString();
            eBook.questionType = source.readString();
            eBook.submitTime = source.readString();
            eBook.maxScore = source.readString();
            eBook.getScore = source.readString();
            eBook.isCorrectedStr = source.readString();
            return eBook;
        }

        @Override
        public UserErrorBook[] newArray(int size) {
            // TODO Auto-generated method stub
            return null;
        }
    };

    public String getExamid() {
        return examid;
    }

    public void setExamid(String examid) {
        this.examid = examid;
    }

    public String getExamname() {
        return examname;
    }

    public void setExamname(String examname) {
        this.examname = examname;
    }

    public String getSubjectname() {
        return subjectname;
    }

    public void setSubjectname(String subjectname) {
        this.subjectname = subjectname;
    }

    public String getQuestionTypeName() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public String getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }


    public String getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(String maxScore) {
        this.maxScore = maxScore;
    }

    public String getGetScore() {
        return getScore;
    }

    public void setGetScore(String getScore) {
        this.getScore = getScore;
    }

    public String getIsCorrectedStr() {
        return isCorrectedStr;
    }

    public void setIsCorrectedStr(String isCorrectedStr) {
        this.isCorrectedStr = isCorrectedStr;
    }

    public String getQuestionno() {
        return questionno;
    }

    public void setQuestionno(String questionno) {
        this.questionno = questionno;
    }
    
    @Override
    public int describeContents() {
        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(examid);
        dest.writeString(examname);
        dest.writeString(questionno);
        dest.writeString(subjectname);
        dest.writeString(questionType);
        dest.writeString(submitTime);
        dest.writeString(maxScore);
        dest.writeString(getScore);
        dest.writeString(isCorrectedStr);
    }

    @Override
    public String toString() {
        return "UserErrorBook [examid=" + examid + ", examname=" + examname + ", questionno=" + questionno
                + ", subjectname=" + subjectname + ", questionType=" + questionType + ", submitTime=" + submitTime
                + ", maxScore=" + maxScore + ", getScore=" + getScore + ", isCorrectedStr=" + isCorrectedStr + "]";
    }
    
}
